
<?php if (isset ( $this->_var['messages'] ) && ! empty ( $this->_var['messages'] )): ?>
<?php $_from = $this->_var['messages']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'message');if (count($_from)):
    foreach ($_from AS $this->_var['message']):
?>
<div class="alert alert-<?php echo $this->_var['message']['type']; ?>">
    <a class="close" data-dismiss="alert">×</a>
    <?php echo $this->_var['message']['text']; ?>
</div>
<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
<?php endif; ?>